package com.zyh.kaoshi.test2;

/**
 * @Author zyh
 * @Date 2024/8/10 11:22
 * @Description
 */

public class ZiMu implements Runnable {

    private Printer printer;

    public ZiMu(Printer printer) {
        this.printer = printer;
    }

    @Override
    public void run() {
        for (char c='A';c<='Z';c++){
            printer.printZiMu(c);
        }
    }
}
